﻿using System;

namespace _11_ExceptionDemo
{
  internal class Program
  {
    static void Main(string[] args)
    {
      try
      {
        int a = 10;
        int b = 0;
        int c = a / b;
        
      }
      catch (Exception ex)
      {
        Console.WriteLine(ex.ToString());
      }
      finally
      {
        Console.WriteLine("finally无论如何都会执行");
        Console.ReadKey();
      }
    }
  }
}
